package com.marvels.product.param.service;

import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptConsultingFeeDTO;
import com.marvels.product.param.dto.McptProduct;

public interface ConsultingFeeService {
	/**
	 * 获取咨询费分页列表信息
	 * @param map
	 * @return
	 */
	public PageInfo<McptConsultingFeeDTO> getPageInfoByParam(Map<String,Object> map) throws MarvelsBusinessException;

	public McptConsultingFeeDTO getEntityByPrimaryKey(Long consultingFeeId) throws MarvelsBusinessException;

	public int insert(McptConsultingFeeDTO dto) throws MarvelsBusinessException;

	public int updateByPrimaryKey(McptConsultingFeeDTO dto) throws MarvelsBusinessException;

	public int updateStatus(McptConsultingFeeDTO dto) throws MarvelsBusinessException;
	
	/**根据小类code查询咨询费
	 * @author 娄凯琦
	 * @date 2018年5月8日  
	 * @param dto
	 * @return
	 */
	public McptConsultingFeeDTO getConsultingFeeByConsultingFeeCode(McptProduct dto) throws MarvelsBusinessException;
	
	
	
	/**
	 * 根据产品信息查询咨询费
	 * @param product
	 * @return
	 */
	public McptConsultingFeeDTO selectByProductInfo(McptProduct product);
	/**
	 * 根据主键删除记录
	 * @param record
	 */
	public int deleteByPrimaryKey(McptConsultingFeeDTO record)throws MarvelsBusinessException;
	
}
